// Add/remove floats.
.fr   { float:right !important; }
.fl   { float:left  !important; }
.fn   { float:none  !important; }
.text-align{text-align: center}
.clearfix{@include clearfix;}

.container {
  @include clearfix;
}

@font-face {
  font-family: 'SYHT';
  font-style: normal;
  font-weight: 100;
  src:  url('#{$font-path}/SHSCN-ELight.woff') format('woff');
}
/* ==============Bootstrap 网格系统输出========== */
.grid-row{
	@include clearfix;
	margin-left: -$grid-gutter-width / 2;
	margin-right: -$grid-gutter-width / 2;
	img{
		width: 100%;
	}
}

@include make-grid-columns;

@include make-grid(xs);

.bar{
	&.bar-subheader{
		&.item-input{
			height: $bar-height ;
			padding: 5px 10px;
			.item-input-wrapper{
				background: #fff;
				border-radius: 0;
				border-bottom: none;
			}
		}
	}
	.title{
		font-size: 16px;
	}
}
.no-header{
	.nav-bar-container{
		display: none ;
	}
	.has-header{
		top: 0;
	}
}
.has-header\+ , .bar-subheader + .has-header{
	top: $bar-height * 2
}

.bs{
	box-shadow: $bs;
}
.bg-positive{
	background: $positive;
}

.header-col{
	box-shadow: $bs;
	padding: 0;
	position: relative;
	z-index: 9999;
	.col{
		padding: 0 5px;
		text-align: center;
		line-height: $bar-height;
		color: #666;
		text-decoration: none;
		&.activated{
			background-color: #eee;
		}
		.mdi-unfold-more{
			font-size: 16px;
			vertical-align: middle;
			color: #666;
		}
	}
}
ol{
	list-style-type: decimal ;
	padding-left: 20px
}
/* slider */
.pic-slider {
	width: 100%;
	.slide{
		display: block;
		width: 100%;
		img{
			display: block;
			width: 100%;
		}
	}
	.slider-pager {
		bottom: 10px;
		.slider-pager-page {
			color: #fff;
			.icon {
				font-size: 12px;
			}
			&.active{
				color: $positive
			}
		}
	}
}
.card{
	margin: 10px;
	box-shadow: 1px 1px 2px rgba(#000, .2);
	.item{
		font-size: 14px;
		&.item-text-wrap{
			line-height: 1.5;
			p{
				color: #999;
				margin-bottom: 5px;
			}
			h5{
				color: #333;
				font-size: 14px;
				font-weight: bold;
			}
		}
	}


	&.full-width{
		margin: 10px 0;
		box-shadow: none;

		.item{
            border-radius: 0;
			&:first-child,&:last-child{
				border: 1px solid $borderColor
			}
		}
	}
}
.list{
	margin: 0 0 10px;
	&:first-child{
		margin-top: -1px;
	}
	.item{
		border-color: $borderColor;
        font-size: 14px;
        background: #fff;
		&.activated{
			background: lighten($bg, 1%);
		}
		&.item-complex{
			padding:0 !important;
			.item-content{
				padding-right: 16px;
				&.activated{
					background: #f0f0f0
				}
			}
		}
		&.item-divider{
			/* color: $positive; */
			background: $bg;
		}
		&.item-icon-right{
			padding-right: 42px ;
			&.item-complex{
				.item-content{
					padding-right: 40px;
				}
			}
			.icon:last-child{
				font-size: 24px;
				color: #C2C2C2;
				right: 5px;
			}
			.icon-btn{
				@include right-middle(0);
				color: $positive;
				padding: 10px 15px;
				border-left: 1px solid $borderColor;
				font-size: 24px;
				text-decoration: none;
				&.activated{
					opacity: .8;
				}
			}
		}

		&.item-icon-left{
			.icon:first-child{
				font-size: 24px;
				color: #666
			}
		}
		&.item-title{
			color: #666;
			font-size: 14px;
			&.item-avatar{
				min-height: 30px;
				padding-left:60px;
				img:first-child{
					@include left-middle(15px);
					@include avatar-size(36px);
				}

			}
			&.item-text-right{
				padding-right: 80px;
				.text-right{
					font-size: 14px;
					@include right-middle(10px)
				}
			}
			.mdi{
				font-size: 24px;
				color: $positive;
				vertical-align: middle;
			}
		}
		&.item-button-right{
			> .button{
				@include right-middle(10px);
				height: auto;
				padding: 0 15px;
			}
		}
		&.item-checkbox-right,
		&.item-radio-right{

			&:not(.item-complex),
			&.item-complex .ion-content{
				padding-right: 40px;
			}

			.checkbox-wrap,
			.radio-wrap{
				@include position(absolute,0 0 0 0);
				input[type="checkbox"],
				input[type="radio"]{

				}
				label{
					@include position(absolute,0 0 0 0);
					height: 100%;
					&:before,&:after{
						left: auto;
						top: 6px
					}
					&:before{
						right: 10px;
					}
					&:after{
						right: 10px
					}
				}
			}
		}
		&.item-avatar{

			&.avatar-inline{
				min-height:20px;
				img:first-child{
					@include left-middle(15px);
					@include avatar-size(40px);
				}
			}
		}
		&.lg-avatar{
			padding-left: 100px;
			img.img-lg{
				max-width: 80px;
				max-height: 80px;
				width: 80px;
				height: 80px;
				left: 10px;
			}
		}
		&.sm-avatar{
			min-height: 60px;
			&:not(.item-complex){
				padding-left: 60px;
				padding-top: 10px;
				padding-bottom: 10px;
			}
			&.item-complex{
				.item-content{
					padding-left: 60px;
					padding-top: 10px;
					padding-bottom: 10px;
				}
			}

			img:first-child{
				top: 10px;
				max-width: 40px;
				max-height: 40px;
				width: 40px;
				height: 40px;
				left: 10px;
			}
			p{
				font-size: 12px;
			}
		}
		&.item-text-right{
			padding-right: 100px;
			.right-wrap{
				position: absolute;
				right: 10px;
				top: 16px;
				bottom: 16px;
				max-width:100px;
				text-align: right;
			}
			.text{
				@include right-middle(15px);
			}
			&.item-complex{
				padding-right: 0;
				.item-content{
					padding-right: 80px;
				}
			}
		}
		&.item-thumbnail-left{
			&:not(.item-complex){
				min-height: 100px;
				padding-left:  100px;
			}

			&.item-complex{
				.item-content{
					min-height: 100px;
					padding-left:100px;
				}
			}
			> img:first-child,
			.item-content > img:first-child{
				@include thumb-size(80px)
			}
            &.thum-auto-height{
                &,
                .item-content{
                    min-height: 70px;
                }
                > img:first-child,
    			.item-content > img:first-child{
                    height: auto !important;
                    min-height: 50px !important
                }
            }
            &.item-thumbnail-sm{
            	min-height: 70px;
            	&:not(.item-complex),
            	.item-content{
            	    padding-left: 65px;
            	    min-height: 70px;
            	    padding-bottom: 8px;
            	}
            	img:first-child,
            	.item-content > img:first-child{
            		@include thumb-size(48px)
            	}
            }
			&.item-text-right{
				padding-right: 80px;
				.right-wrap{
					top: 10px !important;
					bottom: 10px !important;
				}
			}
            // &.item-checkbox-left{

            //     .item-content{
            //         padding-left: 128px;
            //         min-height: 100px;
            //         >img:first-child{
            //             left: 38px;
            //             @include thumb-size(80px);
            //         }
            //     }
            //     h2{
            //         @include ellipsis-more(2);
            //         line-height: 1.5;
            //         margin-bottom: 8px;
            //         min-height: 42px;
            //     }

            //     .checkbox-wrap{
            //         @include left-middle(10px);
            //         .filled-in {
            //             + label:after{
            //                 border-radius: 50%;
            //             }
            //             &:not(:checked) + label:after{
            //                 border-color: #ccc;
            //             }
            //         }

            //     }
            // }
		}
        .badge{
            padding: 2px 6px;
        }

		&.item-input{
			background: #fff;
			.icon-label{
				font-size: 24px;
				width: 20%
			}
			&.has-btn{
                padding-right: 100px;
				.button{
					@include right-middle(0);
				}
			}
		}
        &.item-select{
            .input-label{
                font-size: 14px;
                color: #666;
            }
            select{
                padding-top: 10px;
                padding-bottom: 10px;
            }
        }
		h2{
			font-size: 14px;
			margin-bottom: 5px;
            color: #333;
            small{
                font-size: 12px;
                margin-left: 10px;
                color: #999;
            }
			// @include ellipsis-more(2);
		}
		p,.time{
			font-size: 12px;
			color: #808080;
		}
		.item-row-col{
			margin-bottom: 5px;
			.col{
				font-size: 12px;
				&:last-child{
					text-align: right;
				}
			}
		}
		.info{
			color: #333;
			margin-bottom: 3px;
		}
		.label{
			border-radius: 2px;
			display: inline-block;
			padding: 1px 8px 0;
			font-size: 12px;
		}
		.button,.btn{
			margin-bottom: 0;
			i{
				margin-right: 5px;
				font-size: 24px;
				vertical-align: middle;
			}
		}
	}
}

.card{
	margin: 10px;
	.item{
		font-size: 14px;
		&.item-text-wrap{
			line-height: 1.5;
			p{
				color: #999;
				margin-bottom: 5px;
			}
			h5{
				color: #333;
				font-size: 14px;
				font-weight: bold;
			}
		}
        &.item-divider{
            background: #fff;
        }
	}
	&.full-width{
		margin: 10px 0;
		box-shadow: none;
		.item{
			&:first-child,&:last-child{
				border: 1px solid $borderColor
			}
		}
	}
}
.pd-b{
    bottom: 48px;
}
.line1{
	@include ellipsis;
}
.title-bar{
	background: #fff;
	box-shadow: 0 1px 2px rgba(#000, .12);
	margin: 10px -1px;
	padding: 0 16px;
	color: $positive;
	.title{
		height: 48px;
		line-height: 48px;
		display: inline-block;
		border-bottom: 2px solid $positive;
	}
}

.star-rating {
	display: inline-block;
	.star {
	  display: inline-block;
	  vertical-align: middle;
	  height: 16px;
	  width: 16px;
	  line-height: 16px;
	  text-align: center;
	}
	.mdi {
	  color: $deep-orange;
	  font-size: 16px;
	}
}

.return-type{
	.col{
		font-size: 14px;
		i{
			font-size: 16px;
			margin-right: 5px;
			vertical-align: middle;
		}
	}
}

.button{
	.mdi{
		font-size: 18px;
		vertical-align: middle;
	}
}

.buttons.buttons-left{
	.button{

		.icon.ion-ios-arrow-back{
			padding-left: 8px;
		}
	}
}


.tabs-top{
	.tabs{
      top: 0;
		.tab-item{
			font-family: $ff;
			color: #333;
			&.active,&.tab-item-active{
				color: $positive;
				border-color: $positive;
			}
		}

	}
	.tab-content{
		top:  $tabs-height
	}
	&.tabs-background-positive{
		.tabs{
			height: $bar-height;
			.tab-item{

				color: rgba(#fff, .6);
				&.active{
					color:#fff;
				}
			}
		}
	}
}
.tab-nav{
    .tab-item-active{
        color: $positive
    }
}

.row{
    &.no-padding{
        padding: 0;
        .col{
            padding: 0;
        }
    }
}
.icon-row{
	padding: 15px 0;
	margin: 0 ;
	border-bottom: 1px solid $borderColor;
	.col{
		text-align: center;
		text-decoration: none;
		color: #999;
		padding: 0;
		i{
			font-size: 24px;
			display: inline-block;
			color: $positive;
			@include circular(42px);
			border: 1px solid ;
		}
		.label{
			margin-top: 5px;
			font-size: 12px;
			display: block;
			color: #666;
		}
	}
}





/* 文字 */
.t-sm{
	font-size: 12px !important;
}
.t-md{
	font-size: 14px !important;
	line-height: 1.5;
}
.bold{
	font-weight: bold;
}
p.ps-info{
	font-size: 14px;
	color: #999;
	line-height: 1.5
}
h3{
	font-size: 18px;
	font-weight: normal;
}

.line2{
	@include ellipsis-more(2);
}


// 用户页面头部

.user-header{
	margin: 0 !important;
	@include x-linear-gradient(to right, #0BA3EC,#8926A5) ;
	position: relative;
	overflow: hidden;
	.item.item-avatar{
		border:none;
		padding: 20px 16px 20px 100px;
		background: transparent;
		color: #fff;
		img{
			width: 65px;
			height: 65px;
			max-width: 100px;
			max-height: 100px;
			@include left-middle(15px);
		}
		h2,p{
			color: #fff !important;
            vertical-align: middle;
		}
        p{
            margin: 0;
            font-size: 12px;
            line-height: 24px;
        }
		h2{
			font-size: 14px;
		}
		.right-icon{
			@include position(absolute,20px 16px auto auto);
			a{
				display: inline-block;
				color: #fff;
				font-size: 28px;
				+ a{
					margin-left: 10px;
				}
				&.activated{
					color:rgba(#fff, .8)
				}
			}
		}
		&.avatar-center{
			text-align: center;
			padding: 20px 16px 10px;
			img:first-child{
				display: inline-block;
				position: static;
				@include transform(translate(0,0));
			}
			h2{
				margin-top: 10px
			}

		}

	}
	.bg-box{
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		top: 0;
		@include transform(scale(1.1));
		img{
			width: 100%;
			height: 100%;
			filter: blur(3px);
			-webkit-filter: blur(3px);
		}
		&:after{
			content: "";
			position: absolute;
			@include position(absolute,0 0 0 0);
			background-color: rgba($dark, .3)
		}
	}
	.info-row{
		padding:0 ;
		position: relative;
		z-index: 99;
		background: rgba(#000,.2);
		.col{
			text-align: center;
			background: transparent;
			color: #fff;
			border: none;
			position: relative;
			padding: 10px 5px;
			&.activated{background: transparent;}
			&:after{
				content: "";
				width: 1px;
				height: 40px;
				background: rgba(#fff, .2);
				@include right-middle(0,0,-50%);
			}
			&:last-child{
				&:after{display: none}
			}
			span{
				display: block;
				font-size: 16px;
				+ span{
					/* margin-top: 8px; */
					font-size: 12px;
                    color: rgba(#fff,.8)
				}
			}
		}
	}
	+ .list{
		margin-top: 0;
		.item:first-child{
			border-top: none;
		}
	}
}


.nine-grid{
	@include clearfix;
	background: #fff;
	border-bottom: solid $borderColor 1px;

	li{
		float: left;
		border:solid $borderColor;
		border-width: 0 1px 1px 0;
		margin-bottom: -1px;
		// &:nth-child(n+3){
		// 	border-right: 0;
		// }
		a{
			display: block;
			padding: 20px 10px 20px;
			text-align: center;
			text-decoration: none;
			i{
				color: #666;
				display: block;
				font-size: 32px;
			}
			span{
				display: block;
				color: #999;
				font-size: 12px;
			}
			&.activated{
				background-color: #eee;
			}
		}
	}
	&.g3 li{
		width: 33.333333333%;
	}
}



.no-top-border{
    .item:first-child{
        border-top: none;
    }
}



.lb{
	line-height: 1;
	padding: 3px 5px;
	border:1px solid ;
	font-size: 12px;
	min-width: 48px;
	text-align: center;
	display: inline-block;
	border-radius: 2px;

}

.img-wrap{
	img{
		width: 100%;
		display: block;
	}
    &.mask{
        position: relative;
        min-height: 100px;
        &:after{
            content: "";
            @include position(absolute,0 0 0 0) ;
            background: rgba(#000,.5)
        }
        .button-middle{
            @include box-middle;
            z-index: 999;
        }
    }
    p{
        color: #666
    }
}
.img-center{
	text-align: center;
	img{
		max-width: 60%;
	}
    p{
        color: #999;
        font-size: 14px;
    }
}
.img-box{
	position: relative;
	img{
		width: 100%;
		display: block;
	}
	.over-bar{
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		&.over-text{
			background: rgba(#000, .8);
			padding:10px 15px;
			color: #fff;
		}
		&.over-btn-row{
			padding: 0;
			.col{
				padding: 0;
				.btn{
					border: none;
					height: 40px;
					line-height: 40px;
					display: block;
					text-decoration: none;
					color: #fff;
					text-align: center;
					&.activated{
						opacity: .8
					}
				}
			}
		}
	}

}
.number-set{
    max-width: 100px;
    .button{
        min-height: 16px;
        height: 32px;
        line-height: 28px;
        font-size: 16px;
        padding: 0 5px;
        min-width: 20px;
        color: #666;
        box-shadow: none;
        border-color: #ddd;
    }
    span{
        background: #fff !important;
        box-shadow: none
    }
}
.l28{
    line-height: 28px;
}
.right-middle{
	@include right-middle(10px);
	position: absolute !important;
}

.left-middle{
	@include left-middle(10px);
	position: absolute !important;
}

.row.list-row{
	padding: 15px 5px;
	border-bottom: 1px solid $borderColor;
	background: #fff;
	.col{
		text-align: center;
		color: $positive;
		padding: 0 5px;
		.num{
			font-size: 24px;
			font-family: 'SYHT',Arial;
			margin-bottom: 5px
		}
		.label{
			font-size: 12px;
			color: #999;
			@include ellipsis;
		}
		+ .col{
			border-left: 1px solid $borderColor
		}
	}
}

.menu-bar{
	padding: 0;
	border-bottom: 1px solid #ddd;
	> li{
		position: relative;
		width: 100%;
		> a{
			display: block;
			color: #666;
			padding: 12px 16px;
			&.activated{
				background: darken($bg, 3%)
			}
			.mdi-chevron-down{
				float: right;
				@include transition(.3s);
				font-size: 24px;
			}
		}
		.sub{
			position: absolute;
			top: 100%;
			left: 0;
			right: 0;
			background: rgba(#fff, .95);
			visibility: hidden;
			overflow: hidden;
			// @include transition(.5s);
			li{
				border-bottom: 1px solid #eee;
				a{
					color: #666;
					display: block;
					padding: 10px 16px;
					&.activated{
						background: #eee;
					}
				}
			}
		}
	}
	&.show-sub {
		.mdi-chevron-down{
			@include rotate(180deg);
		}
		.sub{
			visibility: visible;
		}
	}
}







/***************
  Radio Buttons
***************/

/* Remove default Radio Buttons */
.radio-wrap{
	[type="radio"]:not(:checked),
	[type="radio"]:checked {
	  position: absolute;
	  left: -9999px;
	  visibility: hidden;
	}

	[type="radio"]:not(:checked) + label,
	[type="radio"]:checked + label {
	  position: relative;
	  padding-left: 35px;
	  cursor: pointer;
	  display: inline-block;
	  height: 25px;
	  line-height: 25px;
	  font-size: 1rem;
	  @include transition(.28s ease);

	  -webkit-user-select: none; /* webkit (safari, chrome) browsers */
	  -moz-user-select: none; /* mozilla browsers */
	  -khtml-user-select: none; /* webkit (konqueror) browsers */
	  -ms-user-select: none; /* IE10+ */
	}

	[type="radio"] + label:before,
	[type="radio"] + label:after {
	  content: '';
	  position: absolute;
	  left: 0;
	  top: 2px ;
	  margin: 4px;
	  width: 20px;
	  height: 20px;
	  z-index: 0;
	  padding-top: 4px;
	  @include transition(.28s ease);
	}

	/* Unchecked styles */
	[type="radio"]:not(:checked) + label:before {
	  border-radius: 50%;
	  border: 2px solid $radio-empty-color;
	}
	[type="radio"]:not(:checked) + label:after {
	  border-radius: 50%;
	  border: 2px solid $radio-empty-color;
	  z-index: -1;

	  @include transform(scale(0));
	}

	/* Checked styles */
	[type="radio"]:checked + label:before {
	  border-radius: 50%;
	  border: 2px solid transparent;
	}
	[type="radio"]:checked + label:after {
	  border-radius: 50%;
	  border: 2px solid $radio-fill-color;
	  background-color: $radio-fill-color;
	  z-index: 0;
	  @include transform(scale(1.02));
	}

	/* Radio With gap */
	[type="radio"].with-gap:checked + label:before {
	  border-radius: 50%;
	  border: 2px solid $radio-fill-color;
	}
	[type="radio"].with-gap:checked + label:after {
	  border-radius: 50%;
	  border: 2px solid $radio-fill-color;
	  background-color: $radio-fill-color;
	  z-index: 0;
	  @include transform(scale(.5));
	}

	/* Disabled Radio With gap */
	[type="radio"].with-gap:disabled:checked + label:before {
	  border: 2px solid $input-disabled-color;
	}
	[type="radio"].with-gap:disabled:checked + label:after {
	  border: none;
	  background-color: $input-disabled-color;
	}

	/* Disabled style */
	[type="radio"]:disabled:not(:checked) + label:before,
	[type="radio"]:disabled:checked + label:before {
	  background-color: transparent;
	  border-color: $input-disabled-color;
	}
	[type="radio"]:disabled + label {
	  color: $input-disabled-color;
	}
	[type="radio"]:disabled:not(:checked) + label:before {
	  border-color: $input-disabled-color;
	}
	[type="radio"]:disabled:checked + label:after {
	  background-color: $input-disabled-color;
	  border-color: $input-disabled-solid-color;
	}


}
/***************
   Checkboxes
***************/

/* CUSTOM CSS CHECKBOXES */
form p {
  margin-bottom: 10px;
  text-align: left;
}
form p:last-child {
  margin-bottom: 0;
}

.checkbox-wrap{
	/* Remove default checkbox */
	[type="checkbox"]:not(:checked),
	[type="checkbox"]:checked {
	  position: absolute;
	  left: -9999px;
	  visibility: hidden;
	}

	// Checkbox Styles
	[type="checkbox"] {

	  // Text Label Style
	  + label {
	    position: relative;
	    padding-left: 20px;
	    cursor: pointer;
	    display: inline-block;
	    height: 20px;
	    font-weight: normal;
	    line-height: 20px;
	    font-size: 14px;

	    -webkit-user-select: none; /* webkit (safari, chrome) browsers */
	    -moz-user-select: none; /* mozilla browsers */
	    -khtml-user-select: none; /* webkit (konqueror) browsers */
	    -ms-user-select: none; /* IE10+ */
	  }

	  /* checkbox aspect */
	  + label:before {
	    content: '';
	    position: absolute;
	    top: 2px;
	    left: 0;
	    width: 20px;
	    height: 20px;
	    z-index: 0;
	    border: 2px solid $radio-empty-color;
	    border-radius: 1px;
	    margin-top: 2px;
	    @include transition(.2s);
	  }

	  &:not(:checked):disabled + label:before {
	    border: none;
	    background-color: $input-disabled-color;
	  }
	}

	[type="checkbox"]:checked {
	  + label:before {
	    top: -4px;
	    left: -3px;
	    width: 12px; height: 22px;
	    border-top: 2px solid transparent;
	    border-left: 2px solid transparent;
	    border-right: 2px solid $radio-fill-color;
	    border-bottom: 2px solid $radio-fill-color;
	    @include transform(rotate(40deg));
	    -webkit-backface-visibility: hidden;
	    @include transform-origin(100% 100%);
	  }

	  &:disabled + label:before {
	    border-right: 2px solid $input-disabled-color;
	    border-bottom: 2px solid $input-disabled-color;
	  }
	}

	/* Indeterminate checkbox */
	[type="checkbox"]:indeterminate {
	  +label:before {
	    left: -10px;
	    top: -11px;
	    width: 10px; height: 22px;
	    border-top: none;
	    border-left: none;
	    border-right: 2px solid $radio-fill-color;
	    border-bottom: none;
	    @include transform(rotate(90deg));
	    -webkit-backface-visibility: hidden;
	    @include transform-origin(100% 100%);
	  }

	  // Disabled indeterminate
	  &:disabled + label:before {
	    border-right: 2px solid $input-disabled-color;
	    background-color: transparent;
	  }
	}

	// Filled in Style
	[type="checkbox"].filled-in {
	  // General
	  + label:after {
	    border-radius: 2px;
	  }
	  + label:before,
	  + label:after {
	    content: '';
	    left: 0;
	    position: absolute;
	    /* .1s delay is for check animation */
	    transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
	    z-index: 1;
	  }

	  // Unchecked style
	  &:not(:checked) + label:before {
	    width: 0;
	     height: 0;
	     border: 3px solid transparent;
	     left: 6px;
	     top: 10px;

	     -webkit-transform: rotateZ(37deg);
	             transform: rotateZ(37deg);
	     -webkit-transform-origin: 20% 40%;
	             transform-origin: 100% 100%;
	  }

	  &:not(:checked) + label:after {
	    height: 20px;
	    width: 20px;
	    background-color: transparent;
	    border: 2px solid $radio-empty-color;
	    top: 2px;
	    z-index: 0;
	  }

	  // Checked style
	  &:checked {
	    + label:before {
	      top: 2px;
	      left: 1px;
	      width: 8px;
	      height: 13px;
	      border-top: 2px solid transparent;
	      border-left: 2px solid transparent;
	      border-right: 2px solid $input-bg-color;
	      border-bottom: 2px solid $input-bg-color;
	      -webkit-transform: rotateZ(37deg);
	      transform: rotateZ(37deg);

	      -webkit-transform-origin: 100% 100%;
	      transform-origin: 100% 100%;
	    }

	    + label:after {
	      top: 2px;
	      width: 20px;
	      height: 20px;
	      border: 2px solid $checbox-fill-color;
	      background-color: $checbox-fill-color;
	      z-index: 0;
	    }
	  }
	  // Disabled style
	  &:disabled:not(:checked) + label:before {
	    background-color: transparent;
	    border: 2px solid transparent;
	  }

	  &:disabled:not(:checked) + label:after {
	    border-color: transparent;
	    background-color: $input-disabled-solid-color;
	  }

	  &:disabled:checked + label:before {
	    background-color: transparent;
	  }

	  &:disabled:checked + label:after {
	    background-color: $input-disabled-solid-color;
	    border-color: $input-disabled-solid-color;
	  }
	}
}



.horizontal{
	// @include clearfix;
	.radio-wrap{
		display: inline-block;
		margin-left: -5px;
		label{
			font-size: 16px
		}
	}

}

.checkbox-wrap{
	label{
		+ p{
			color: lighten($second-text, 20%);
			font-size: 12px;
			padding-left: 30px;
		}
	}
}
